﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using An_Im.Extension.Contract;
using System.ComponentModel.Composition;
using Microsoft.Office.Interop.PowerPoint;
using Microsoft.Office.Tools;

namespace An_Im.QuickPPT
{
    [Export(typeof(IExtend))]
    public class AddInEntry : IExtend
    {
        static public Application Application { get; private set; }

        public string Name => "Quick";

        public string Description => "QuickPPT 2021SP1\nMade By LiangYin\n感谢OneKey8开源项目\nEmail:liangyingugugu@163.com";

        public string Author => "LiangYin";

        public string Version => "2021SP1";

        public IEnumerable<IAnImCommand> CustomCommandList => new CommandList();

        public VBAReference VBAReference => _vBAReference;

        private VBAReference _vBAReference = new VBAReference()
        {
            BaseAPIModuleName = Properties.Resources.LibName,
            BaseAPIModuleCode = Properties.Resources.LibCode,
        };

        public void Initialize(Application application, CustomTaskPaneCollection customTaskPaneCollection)
        {
            Application = application;

        }
    }
}
